# Description: OpenGL Extension Wrangler Library (GLEW), çapraz platform açık kaynak C / C ++ uzantısı yükleme kitaplığıdır.
# URL: http://glew.sourceforge.net/
# Packager: milisarge
# Depends on: xorg-mesa xorg-libxi xorg-libxmu

name=glew
version=2.0.0
release=1
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tgz)

build() {
	cd $name-$version

	sed -i -e "s|lib64|lib|" config/Makefile.linux
	sed -i -e '/^.PHONY: .*\.pc$/d' -i Makefile

	make \
		CC="${CC:-gcc}" \
		LD="${CC:-gcc}" \
		CFLAGS.EXTRA="$CFLAGS -fPIC" \
		LDFLAGS.EXTRA="$LDFLAGS"

	make GLEW_DEST="$PKG/usr" install
}
